﻿Ext.define('app.prm.project.SummaryHistory', {
    extend: 'Ext.window.Window',
    border: true,
    title: '概要历史',
    autoScroll: true,
    modal: true,
    maximized: true,
    bodyStyle: 'padding:5px',
    initComponent: function () {
        var me = this;
        me.items = [];
        me.callParent();
    },
    listeners: {
        afterrender: function (me) {
            //上海研发中心第一研究室 2016年32周 (2016-8-8 ~ 2016-8-14)
            App.AjaxGet('/api/services/app/summary/GetHistory', function (data)
            {
                console.log("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
                var record = data.result;
                console.log(record);
                for (var i = 0; i < record.length; i++)
                {
                    var rec = record[i]
                    var panel = Ext.create("app.prm.project.History", { dataRecord: rec });
                    me.add(panel);
                }
            });
        }
    }
})